from django.db import models

class JoinInformation(models.Model):
    email = models.EmailField(blank=True, null=True)
    name = models.CharField(max_length=100)
    phone = models.CharField(max_length=13, blank=True, null=True)
    address = models.CharField(max_length=200)
    order_details = models.TextField()
    notes = models.TextField(blank=True, null=True)
    created_at = models.DateTimeField(auto_now_add=True)  # 新增这一行

    def __str__(self):
        return self.name